var express = require('express');
var router = express.Router();
var dao = require('../dao');
var commonUtil = require('../commonUtil');

/* GET home page. */
router.get('/', function(req, res, next) {
    let apps = req.authApps, defaultAppName = apps && apps[0] && apps[0].pathName || 'appInterface';
    res.redirect(`/view-${defaultAppName}`);

});

module.exports = router;
